" Plugin settings
" MRU {{{1
nnoremap <space>r :MRU<CR>

" CtrlP {{{1
let g:ctrlp_map = '<c-p>'
cnoremap pncd CtrlP ~/git/active-notes<cr>
cnoremap dncd CtrlP ~/github/dot-files<cr>
cnoremap lncd CtrlP ~/github/learn<cr>

" CtrlPMRU
nnoremap <space><space>r :CtrlPMRUFiles<CR>

" ctrlp ignore
let g:ctrlp_custom_ignore = '\v[\/](compiler|node_modules|target|dist)|(\.(swp|ico|git|svn))$'

" rainbow {{{1
" enabled rainbow
let g:rainbow_active = 1

" vim-session {{{1
" disable auto prompting to save sessions
let g:session_autosave = 'no'

" vmath {{{1
vnoremap <expr> ++ VMATH_YankAndAnalyse()

" VimSum {{{1
vnoremap -- :VisSum<cr>

" listTrans {{{1
nnoremap <space>tl :call ListTrans_toggle_format()<CR>
vnoremap <space>tl :call ListTrans_toggle_format('visual')<CR>

" dragvisuals {{{1
vmap <expr> <LEFT> DVB_Drag('left')
vmap <expr> <RIGHT> DVB_Drag('right')
vmap <expr> <DOWN> DVB_Drag('down')
vmap <expr> <UP> DVB_Drag('up')
vmap <expr> D DVB_Duplicate()

" Remove any introduced trailing whitespace after moving
let g:DVB_TrimWS = 1

" csv.vim {{{1
" getting vanilla W to work
let g:csv_nomap_w = 1
